//
// Created by wze-zero on 2024/8/2 002.
//
#include <iostream>

using namespace std;

int main() {
    char c;
    cin >> c;
    cout << (int) c << endl;
    return 0;
}